# !/usr/bin python3
# encoding: utf-8 -*-
# @file     : complains_apis.py
# @author   : 沙陌 Matongxue_2
# @Time     : 2024/1/13 15:31
# @Copyright: 北京码同学

from api.base_api import BaseSellerApi


class AppealComplainsApi(BaseSellerApi):

    def __init__(self,id):
        super().__init__()
        self.url = f'{self.host}/seller/trade/order-complains/{id}/appeal'
        self.method = 'put'
        self.data = {
            "appeal_content":"这是卖家申诉内容"
        }

class ComplainsCommunicationApi(BaseSellerApi):

    # 接口的基本信息，统一封装在init函数中
    def __init__(self,id):
        super().__init__()
        self.url = f'{self.host}/seller/trade/order-complains/{id}/communication'
        self.method = 'put'
        self.data = {
            "content":"这是卖家对话内容"
        }

class SellerToArbitrationApi(BaseSellerApi):

    # 接口的基本信息，统一封装在init函数中
    def __init__(self,id):
        super().__init__()
        self.url = f'{self.host}/seller/trade/order-complains/{id}/to-arbitration'
        self.method = 'put'